package com.xxh.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

//
public class AfterLog  implements AfterReturningAdvice {
    /**
     *
     * @param returnvalue 返回结果？？
     * @param method
     * @param objects
     * @param o1
     * @throws Throwable
     */
    @Override
    public void afterReturning(Object returnvalue, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("after log  "+o1.getClass().getName()+"执行了："+method.getName()+"返回值是："+returnvalue);
    }
}
